import { createApp } from "vue";
import "./styles/index.scss";
import App from "./App.vue";
import { loadPlugins } from "./plugins";
import router from "./router";
import { loadPinia } from "./stores";
import { checkVersionUpdate } from "./updateVersion";

const app = createApp(App);

// 注册持久化存储
loadPinia(app);

/** 加载插件 */
loadPlugins(app);

app.use(router);

app.mount("#app");

checkVersionUpdate(`v${import.meta.env.VITE_APP_VERSION}`);
